/* 这个文件包含所有完整的样式，包括卡片化设计 */

/* 教程提示框 - 卡片化 */
.tutorial-tips {
    background: linear-gradient(135deg, #fff3cd 0%, #ffe8a1 100%);
    padding: 2rem;
    border-radius: 16px;
    margin-top: 3rem;
    border-left: 4px solid #ff9800;
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.15);
}

.tutorial-tips h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
    font-weight: 700;
}

.tutorial-tips ul {
    list-style: none;
    padding: 0;
}

.tutorial-tips li {
    padding: 0.75rem 0;
    color: #1a1a1a;
    line-height: 1.8;
    position: relative;
    padding-left: 1.5rem;
}

.tutorial-tips li::before {
    content: '💡';
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.tutorial-tips strong {
    color: #1a1a1a;
    font-weight: 700;
}

/* FAQ部分 - 卡片化 */
.faq {
    background: #f9fafb;
    padding: 80px 0;
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    border-radius: 16px;
    margin-bottom: 1rem;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.faq-item:hover {
    border-color: #2e7d54;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.faq-item.active {
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    border-color: #2e7d54;
}

.faq-question {
    padding: 1.5rem 2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    gap: 1rem;
}

.faq-question:hover {
    background: #f9fafb;
}

.faq-question h3 {
    font-size: 1.05rem;
    color: #1a1a1a;
    font-weight: 700;
    margin: 0;
}

.faq-icon {
    font-size: 1.5rem;
    color: #2e7d54;
    font-weight: 300;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 1500px;
}

.faq-answer p,
.faq-answer ul,
.faq-answer ol {
    padding: 0 2rem 1.5rem;
    color: #666;
    line-height: 1.8;
    margin: 0;
}

.faq-answer p + p,
.faq-answer p + ul,
.faq-answer p + ol {
    padding-top: 0.75rem;
}

.faq-answer ul,
.faq-answer ol {
    padding-left: 4rem;
}

.faq-answer li {
    margin-bottom: 0.5rem;
}

.faq-answer strong {
    color: #1a1a1a;
    font-weight: 700;
}

/* 文章部分 - 卡片化 */
.articles {
    background: #fff;
    padding: 80px 0;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
}

.article-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2e7d54 0%, #3d9968 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.article-card:hover::before {
    transform: scaleX(1);
}

.article-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    transform: translateY(-5px);
    border-color: #2e7d54;
    background: #fff;
}

.article-category {
    display: inline-block;
    background: #2e7d54;
    color: #fff;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-card h3 {
    font-size: 1.15rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.article-card h3 a {
    color: #1a1a1a;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 700;
}

.article-card h3 a:hover {
    color: #2e7d54;
}

.article-card > p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.article-meta {
    display: flex;
    gap: 1.5rem;
    color: #999;
    font-size: 0.85rem;
}

.article-date::before {
    content: '📅 ';
}

.article-read::before {
    content: '⏱️ ';
}

/* CTA部分 - 增强卡片效果 */
.cta {
    background: linear-gradient(135deg, #2e7d54 0%, #1f5a3d 100%);
    color: #fff;
    text-align: center;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.cta::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #fff;
    font-weight: 800;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-note {
    margin-top: 1rem;
    font-size: 0.95rem;
    opacity: 0.85;
}

/* 页脚 - 卡片化布局 */
.footer {
    background: #1a1a1a;
    color: #fff;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col {
    background: rgba(255,255,255,0.03);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
}

.footer-col h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #3d9968;
    font-weight: 800;
}

.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #fff;
    font-weight: 700;
}

.footer-col p {
    color: #aaa;
    line-height: 1.8;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col ul li a {
    color: #aaa;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-col ul li a:hover {
    color: #3d9968;
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    color: #888;
    margin-bottom: 0.5rem;
}

.footer-disclaimer {
    font-size: 0.9rem;
    color: #666;
}

/* 通用section头部样式增强 */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #1a1a1a;
    letter-spacing: -1px;
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.7;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .tutorial-tips {
        padding: 1.5rem;
    }

    .faq-question {
        padding: 1.2rem 1.5rem;
    }

    .faq-answer p,
    .faq-answer ul,
    .faq-answer ol {
        padding: 0 1.5rem 1.2rem;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-col {
        padding: 1.5rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }
}
/* 文章页面专用样式 */

/* 文章容器 */
.article-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 20px 80px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
}

/* 文章主体 */
.article-main {
    background: #fff;
}

/* 文章标题 */
.article-header {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #e5e7eb;
}

.article-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #1a1a1a;
    line-height: 1.3;
}

.article-meta-info {
    display: flex;
    gap: 2rem;
    color: #666;
    font-size: 0.95rem;
}

.article-meta-info span::before {
    margin-right: 0.5rem;
}

/* 文章内容 */
.article-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
}

.article-content h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 2.5rem 0 1.5rem;
    color: #1a1a1a;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #2e7d54;
}

.article-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 2rem 0 1rem;
    color: #1a1a1a;
}

.article-content p {
    margin-bottom: 1.2rem;
}

.article-content ul,
.article-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.75rem;
}

.article-content strong {
    color: #1a1a1a;
    font-weight: 700;
}

.article-content code {
    background: #f3f4f6;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #2e7d54;
}

.article-content blockquote {
    background: #f9fafb;
    border-left: 4px solid #2e7d54;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 8px;
}

/* 侧边栏 */
.article-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

/* 侧边栏卡片 */
.sidebar-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.sidebar-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #2e7d54;
}

.sidebar-card p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* 快速链接 */
.quick-links {
    list-style: none;
    padding: 0;
}

.quick-links li {
    margin-bottom: 0.75rem;
}

.quick-links a {
    color: #2e7d54;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.quick-links a:hover {
    color: #1f5a3d;
    transform: translateX(5px);
}

/* 法律信息 */
.legal-links {
    list-style: none;
    padding: 0;
}

.legal-links li {
    margin-bottom: 0.75rem;
}

.legal-links a {
    color: #2e7d54;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.legal-links a:hover {
    color: #1f5a3d;
    transform: translateX(5px);
}

.sidebar-footer {
    font-size: 0.85rem;
    color: #999;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

/* 目录导航 - 如果有的话 */
.toc-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.toc-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.toc-list {
    list-style: none;
    padding: 0;
}

.toc-list li {
    margin-bottom: 0.5rem;
}

.toc-list a {
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    padding: 0.5rem 0;
    border-left: 2px solid transparent;
    padding-left: 1rem;
}

.toc-list a:hover {
    color: #2e7d54;
    border-left-color: #2e7d54;
}

/* 响应式设计 */
@media (max-width: 968px) {
    .article-container {
        grid-template-columns: 1fr;
    }

    .article-sidebar {
        position: static;
        margin-top: 3rem;
    }

    .article-header h1 {
        font-size: 2rem;
    }

    .article-content {
        font-size: 1rem;
    }

    .article-content h2 {
        font-size: 1.5rem;
    }

    .article-content h3 {
        font-size: 1.2rem;
    }
}

/* 返回首页按钮 */
.back-to-home {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #2e7d54;
    text-decoration: none;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    background: #f9fafb;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

.back-to-home:hover {
    background: #2e7d54;
    color: #fff;
    transform: translateX(-5px);
}
